/**
 * 2016，thor.com，all rights reserved。
 * 
 * Project：		thor-webui-core
 * Filename：	NotificationServiceImpl.java
 * Created：		2016年8月25日
 * Creator：		wolv
 */
package com.thor.palmmall.rest.notification;

import org.apache.log4j.Logger;

import com.thor.commons.exception.ThorServiceException;
import com.thor.palmmall.rest.utils.JPushUtils;
import com.thor.webui.service.notification.Notice;
import com.thor.webui.service.notification.NotificationService;

/**
 * @author wolv
 *
 */
public class NotificationServiceImpl implements NotificationService {

  private static final Logger logger = Logger.getLogger(NotificationServiceImpl.class);

  @Override
  public void notice(Notice notice) throws ThorServiceException {
    logger.debug(notice);
    JPushUtils.push(notice.getMessage(), notice.getId(), notice.getRecipients());
  }
}
